<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Realm - Tables</title>
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="Bluth Company">
    <link rel="shortcut icon" href="/food/Public/admin_style/assets/ico/favicon.html">
    <link href="/food/Public/admin_style/assets/css/bootstrap.css" rel="stylesheet">
    <link href="/food/Public/admin_style/assets/css/theme.css" rel="stylesheet">
    <link href="/food/Public/admin_style/assets/css/font-awesome.min.css" rel="stylesheet">
    <link href="/food/Public/admin_style/assets/css/alertify.css" rel="stylesheet">
    <link rel="Favicon Icon" href="favicon.ico"> 
  </head>
  <body>
    <div id="wrap">
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <div class="logo">
            <img src="/food/Public/admin_style/assets/img/logo.png" alt="Realm Admin Template">
          </div> 
          


        </div>
      </div>
    </div>

    <div class="container-fluid">

      <!-- Side menu -->  
     <div class="sidebar-nav nav-collapse collapse">
        <div class="user_side clearfix">
          <img src="/food/Public/admin_style/assets/img/qya.jpg" alt="Odinn god of Thunder">
          <h5>Admin</h5>
          <a href="#"><i class="icon-cog"></i> Settings</a>        
        </div>
          <div class="accordion-group">
            <div class="accordion-heading">
              <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#aollapse2"><i class="icon-reorder"></i> <span>数据统计与分析</span></a>
            </div>
             <div id="aollapse2" class="accordion-body collapse">
              <div class="accordion-inner">
                <a class="accordion-toggle" href="<?php echo U('Index/count');?>"><i class="icon-rss"></i> 统计</a>
             
              </div>
              </div>
            
            <div class="accordion-group">
            <div class="accordion-heading">
              <a  class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#bollapse2"><i class="icon-reorder"></i> <span>用户信息</span></a>
            </div>
            <div id="bollapse2" class="accordion-body collapse">
              <div class="accordion-inner">
                <a href="<?php echo U('User/userlist');?>" class="accordion-toggle" href="notifications.html"><i class="icon-rss"></i> 用户信息列表</a>
                
              </div>
               </div>

            <div class="accordion-group">
            <div class="accordion-heading">
              <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#collapse2"><i class="icon-reorder"></i> <span>用户发布美食信息</span></a>
            </div>
           
                          
                          <div id="collapse2" class="accordion-body collapse">
              <div class="accordion-inner">
                <a href="<?php echo U('Meishis/meishislist');?>" class="accordion-toggle" href="notifications.html"><i class="icon-rss"></i>用户发布美食信息列表</a>
               
              </div>
            </div>
            <div class="accordion-group">
            <div class="accordion-heading">
              <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#dollapse2"><i class="icon-reorder"></i> <span>管理员添加美食</span></a>
            </div>
            <div id="dollapse2" class="accordion-body collapse">
              <div class="accordion-inner">
                <a href="<?php echo U('Food/regfood');?>" class="accordion-toggle" href="notifications.html"><i class="icon-rss"></i> 管理员添加美食列表</a>
                
              </div>
               </div>
          </div>
          <div class="accordion-group">
            <div class="accordion-heading">
              <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#eollapse2"><i class="icon-reorder"></i> <span>管理员添加的美食列表</span></a>
            </div>
            <div id="eollapse2" class="accordion-body collapse">
              <div class="accordion-inner">
                <a href="<?php echo U('Food/foodlist');?>" class="accordion-toggle" href="notifications.html"><i class="icon-rss"></i> 管理员添加的信息列表</a>
                
              </div>
               </div>
          </div>
          </div>
          <div class="accordion-group">
      <div class="accordion-heading">
        <a class="accordion-toggle b_F6F1A2" href="<?php echo U('admin/index/signout');?>"><i class="icon-tasks"></i> <span>注销登录</span></a>
      </div>
    </div>
          </div>      
        </div>
      </div>

      <!-- /Side menu -->

        <!-- Main window -->
    <div class="main_container" id="tables_page">
      <div class="row-fluid">
        <br>
        <h2 class="heading">
          用户信息管理      
        </h2>
      </div>

          <div class="row-fluid">
           <div class="widget widget-padding span12">
             
    <div class="row-fluid">
          <div class="widget widget-padding span12">
            <div class="widget-header">
              <i class="icon-group"></i>
              <h5>用户信息列表</h5>
              <div class="widget-buttons">
                  <a href="http://www.datatables.net/usage/" data-title="Documentation" class="tip" target="_blank"><i class="icon-external-link"></i></a>
                  <a href="#" data-title="Collapse" data-collapsed="false" class="tip collapse"><i class="icon-chevron-up"></i></a>
              </div>
            </div>  
            <div class="widget-body">
              <table id="users" class="table table-striped table-bordered dataTable">
                <thead>
                 
                    <tr class="success">
	<th>序号</th>
	<th>头像</th>
	<th>用户别名</th>
	<th>联系电话</th>
  <th>邮箱</th>
	<th>状态</th>
	<th>创建时间</th>
	<th>操作</th>
	</tr>
                  
                </thead>
                <tbody>
                <?php if(is_array($users)): $i = 0; $__LIST__ = $users;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class="error">
                    <td><?php echo ($i); ?></td>
                    <td><img src="/food/Public/Uploads/photo/<?php echo ($vo["photo"]); ?>" width="50"></td>
                  
                   
  <td><?php echo ($vo["aliasname"]); ?></td>
  <td><span class="label label-success"><?php echo ($vo["telephone"]); ?></span></td>
  <td><?php echo ($vo["email"]); ?></td>
  <td> 
  <?php if($vo["state"] == '0'): ?>正常
  <?php else: ?>
  已禁用<?php endif; ?>

  </td>
  <td><?php echo ($vo["createtime"]); ?></td>

   <td>
   <div>
   <a href="/food/Admin/User/edit/id/<?php echo ($vo["id"]); ?>"> 修改|</a>
                        <?php if($vo["state"] == '0'): ?><a href="/food/Admin/User/state/id/<?php echo ($vo["id"]); ?>/state/<?php echo ($vo["state"]); ?>">暂停使用|</a>
                            <?php else: ?>
                            <a href="/food/Admin/User/isstate/id/<?php echo ($vo["id"]); ?>/state/<?php echo ($vo["state"]); ?>"><i
                                    class="icon-move"></i> 取消禁用|</a><?php endif; ?>
                        <a href="/food/Admin/User/edituser/id/<?php echo ($vo["id"]); ?>"> 密码重置|</a>
                        <a href="/food/Admin/User/deluser/id/<?php echo ($vo["id"]); ?>" onclick="return confirm('你确定要删除吗？')"><i class="icon-remove"></i>删除</a>
                  </div>



    </td>
                      
                  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                </tbody>
              </table>
            </div> <!-- /widget-body -->
          </div> <!-- /widget -->
        </div> <!-- /row-fluid -->

    </div>
    <!-- /Main window -->

    </div><!--/.fluid-container-->
    </div><!-- wrap ends-->
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/raphael-min.js"></script>
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/bootstrap.js"></script>
    <script type="text/javascript" src='/food/Public/admin_style/assets/js/sparkline.js'></script>
    <script type="text/javascript" src='/food/Public/admin_style/assets/js/morris.min.js'></script>
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/jquery.dataTables.min.js"></script>   
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/jquery.masonry.min.js"></script>   
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/jquery.imagesloaded.min.js"></script>   
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/jquery.facybox.js"></script>   
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/jquery.alertify.min.js"></script> 
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/jquery.knob.js"></script>
    <script type='text/javascript' src='/food/Public/admin_style/assets/js/fullcalendar.min.js'></script>
    <script type='text/javascript' src='/food/Public/admin_style/assets/js/jquery.gritter.min.js'></script>
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/realm.js"></script>
  </body>
</html>